/*
    * Copyright (c) 2024 Hunan OpenValley Digital Industry Development Co., Ltd.
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
    * You may obtain a copy of the License at
    *
    *     http://www.apache.org/licenses/LICENSE-2.0
    *
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an "AS IS" BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    * See the License for the specific language governing permissions and
    * limitations under the License.
 */

#ifndef I_FILE_SHARE_SERVICE_H
#define I_FILE_SHARE_SERVICE_H

#include <vector>
#include <string>

#include "iremote_broker.h"
#include "file_share_callback.h"

namespace OHOS {
namespace FileShare {
class IFileShareService : public IRemoteBroker {
public:
    virtual int32_t SendFile(SendTask &task) = 0;
    virtual int32_t RegisterFileShareCallback(const sptr<IFileShareCallback> &callback) = 0;
    virtual int32_t UnRegisterFileShareCallback() = 0;
    virtual int32_t CancelSendFile(const std::string &deviceId, SendType type) = 0;
    virtual int32_t SetShareStatus(const bool status) = 0;
    virtual int32_t GetShareStatus(bool &status) = 0;
    virtual std::string GetStoragePath() = 0;
    virtual int32_t SetStoragePath(std::string &path) = 0;
    virtual int32_t GetWorkDuration() = 0;
    virtual int32_t SetWorkDuration(int32_t &time) = 0;
    virtual int32_t RegisterShareStatusCallback(const std::string &bundleName, const sptr<IFileShareCallback> &callback) = 0;
    virtual int32_t UnRegisterShareStatusCallback(const std::string &bundleName) = 0;
    virtual int32_t ChangeUuid(const uint16_t uuid) = 0;
    enum {
        SEND_FILE = 0,
        REGISTER_FILE_SHARE_CALLBACK = 1,
        UNREGISTER_FILE_SHARE_CALLBACK = 2,
        CANCEL_SEND_FILE = 3,
        SET_SHARE_STATUS = 4,
        GET_SHARE_STATUS = 5,
        GET_STORAGE_PATH = 6,
        SET_STORAGE_PATH = 7,
        GET_WORK_TIME = 8,
        SET_WORK_TIME = 9,
        REGISTER_SHARE_STATUS_CALLBACK = 10,
        UNREGISTER_SHARE_STATUS_CALLBACK = 11,
        CHANGE_UUID = 12,
    };

    DECLARE_INTERFACE_DESCRIPTOR(u"ohos.distributeddatamgr.fileshare");
};

} // namespace FileShare
} // namespace OHOS

#endif // I_FILE_SHARE_SERVICE_H